task2:task2.c
	gcc -o $@ $^
task3:task3.c
	gcc -o $@ $^
.PHONY:clean look2 look3
clean:
	rm -rf task2 task1 task3

look2:
	while :; do ps ajx|head -1 && ps ajx|grep task2 | grep -v grep;sleep 1; done

look3:
	while :; do ps ajx|head -1 && ps ajx|grep task3 | grep -v grep;echo "------------------";sleep 1; done
